package com.vastcom.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Department entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="department"
    ,catalog="student"
)

public class Department  implements java.io.Serializable {


    // Fields    

     private String departmentid;
     private String mc;
     private String pid;
     private Integer nj;
     private String bh;


    // Constructors

    /** default constructor */
    public Department() {
    }

    
    /** full constructor */
    public Department(String mc, String pid, Integer nj, String bh) {
        this.mc = mc;
        this.pid = pid;
        this.nj = nj;
        this.bh = bh;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="departmentid", unique=true, nullable=false, length=32)

    public String getDepartmentid() {
        return this.departmentid;
    }
    
    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }
    
    @Column(name="mc", length=32)

    public String getMc() {
        return this.mc;
    }
    
    public void setMc(String mc) {
        this.mc = mc;
    }
    
    @Column(name="pid", length=32)

    public String getPid() {
        return this.pid;
    }
    
    public void setPid(String pid) {
        this.pid = pid;
    }
    
    @Column(name="nj")

    public Integer getNj() {
        return this.nj;
    }
    
    public void setNj(Integer nj) {
        this.nj = nj;
    }
    
    @Column(name="bh", length=32)

    public String getBh() {
        return this.bh;
    }
    
    public void setBh(String bh) {
        this.bh = bh;
    }
   








}